package router

import (
	"fmt"
	"os"

	"gitee.com/firewing_group/configenv"
	"github.com/labstack/echo"
)

func init() {

}

func Start(e *echo.Echo) {
	packageInit()
	_router(e)
}

func packageInit() {

}

func _router(e *echo.Echo) {
	common(e)
}

func common(e *echo.Echo) {
	//获得广告列表
	// e.GET("/aide/Z2V0bGlzdAo", handlers.GetAideList, mid.AuthMid, mid.UserAPILockMid, mid.UsefulMid)
	// //看完一个广告调用接口
	// e.GET("/aide/bG9vawo/:index", handlers.KanAide, mid.AuthMid, mid.UserAPILockMid, mid.UsefulMid)
	// //点击一个广告调用接口
	// e.GET("/aide/Y2xpY2sK/:index", handlers.ClickAide, mid.AuthMid, mid.UserAPILockMid, mid.UsefulMid)
	// //获得看完广告奖励的接口
	// e.GET("/aide/R2V0UmV3YXJkCg/:index", handlers.GetAideReward, mid.AuthMid, mid.UserAPILockMid, mid.UsefulMid)
	a := configenv.GetEnvOrConfig("MONGOIP")
	b := configenv.GetEnvOrConfig("shishi")
	c := os.Getenv("shishi")
	d := configenv.GetEnvOrConfig("ckname")
	fmt.Printf("FromConfig_%v\n", a)
	fmt.Printf("FromConfig_%v\n", b)
	fmt.Printf("FromConfig_%v\n", c)
	fmt.Printf("FromConfig_%v\n", d)
}
